<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::namespace('App\\Http\\Controllers\\Home')->group(function () {
    // Route::get('/', 'IndexController@index'); // 首页
    // 将上面的路由重定向到adminapi
    Route::redirect('/', 'adminapi/index.html');
    Route::get('index.html', 'IndexController@index')->name('index'); // 首页
});

// 错误页面
Route::fallback(function () {
    return '页面不存在！';
});
